package com.midou.administration.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CouponBo {
    public Integer getBuId() {
        return buId;
    }

    public void setBuId(Integer buId) {
        this.buId = buId;
    }

    public String getCpContent() {
        return cpContent;
    }

    public void setCpContent(String cpContent) {
        this.cpContent = cpContent;
    }

    public String getCpName() {
        return cpName;
    }

    public void setCpName(String cpName) {
        this.cpName = cpName;
    }

    public Integer getCpNum() {
        return cpNum;
    }

    public void setCpNum(Integer cpNum) {
        this.cpNum = cpNum;
    }

    public void setCpBeginTime(Date cpBeginTime) {
        this.cpBeginTime = cpBeginTime;
    }

    public void setCpEndTime(Date cpEndTime) {
        this.cpEndTime = cpEndTime;
    }

    public Date getCpBeginTime() {
        return cpBeginTime;
    }

    public Date getCpEndTime() {
        return cpEndTime;
    }



    /**
     * 所属商家
     */
    private Integer buId;

    /**
     * 优惠券内容
     */
    private String cpContent;

    /**
     * 优惠券名称
     */
    private String cpName;

    /**
     * 优惠券数量
     */
    private Integer cpNum;

    /**
     * 优惠券发行时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cpBeginTime;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cpEndTime;
    /**
     * 优惠卷状态
     */

    private int ucState;
    /**
     * 所属商家
     */
    /**
     * 优惠卷价格
     *
     */
    private Double cePrice;

    private Integer cpId;

    private String buName;

    public String getBuName() {
        return buName;
    }

    public void setBuName(String buName) {
        this.buName = buName;
    }

    public Integer getCpId() {
        return cpId;
    }

    public void setCpId(Integer cpId) {
        this.cpId = cpId;
    }

    public int getUcState() {
        return ucState;
    }

    public void setUcState(int ucState) {
        this.ucState = ucState;
    }

    public Double getCePrice() {
        return cePrice;
    }

    public void setCePrice(Double cePrice) {
        this.cePrice = cePrice;
    }
}
